using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
using SpellCenter.Core;

namespace SpellCenter.UI.FileChoosing
{
    public partial class FileSelectControl : UserControl
    {
        private FilesInCorpusList _filesInCorpusList;

        public FileSelectControl()
        {
            InitializeComponent();
        }

        #region RegisterEvents and Handlers

        #endregion

        public IEnumerable<FileInfo> IncludedFiles
        {
            get { return _treeControl.GetIncludedFiles(); }
        }
        public IEnumerable<FileInfo> ExcludedFiles
        {
            get { return _treeControl.GetExcludedFiles(); }
        }

        public FilesInCorpusList CorpusConfig
        {
            get { return _filesInCorpusList; }
            set
            {
                _filesInCorpusList = value;
                _treeControl.CorpusConfig = value;
            }
        }
    }
}
